//
//  ViewController.h
//  MapGenerator
//
//  Created by zg.shao on 15/2/13.
//  Copyright (c) 2015年 kuwo.cn. All rights reserved.
//

#import <UIKit/UIKit.h>

// 设备的高和宽
#define     SCREEN_WIDTH    ([[UIScreen mainScreen] bounds].size.width)
#define     SCREEN_HEIGHT   ([[UIScreen mainScreen] bounds].size.height)

#define ROW_MAX    6
#define COL_MAX    5

#define CELL_MAX   (ROW_MAX * COL_MAX)

// 根据数组的索引，获取行和列的索引
#define GET_ROW_INDEX(index) ((index) / COL_MAX)
#define GET_COL_INDEX(index) ((index) % COL_MAX)

// 根据行和列，获取数组的索引
#define GET_INDEX(row, col)  ((row) * COL_MAX + col)


@interface ViewController : UIViewController


@end

